<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
        <script text="javascript">
            // 1.将map转成对象
            var map = new Map()
            console.log(map);
            var aa = new Object()
            map.set('name','Zoe').set('age',16).set('gender','male')
             var cc  =  Object.fromEntries(map)
            console.log(aa);
             console.log(cc);
            //  var obj = new Object()
            // console.log(obj);
            // for (let e  of map.entries()) {
            //     obj.set(e)
            //     console.log(obj);
            // }
            </script>
</body>
</html>